list(APPEND LIST_ALL_SOURCE_DIR 
    ${CMAKE_CURRENT_SOURCE_DIR}
    )

FOREACH(EVERY_DIR ${LIST_ALL_SOURCE_DIR})
aux_source_directory(${EVERY_DIR} SRC_LIST_TMP)
list(APPEND SRC_LIST_ALL ${SRC_LIST_TMP})
ENDFOREACH(EVERY_DIR) #end foreach


add_library(${tgt} SHARED ${SRC_LIST_ALL})
add_library(${tgt}_static STATIC ${SRC_LIST_ALL})
SET_TARGET_PROPERTIES(${tgt}_static PROPERTIES OUTPUT_NAME ${tgt})

#target_link_libraries(${tgt}  ${need_libs})

target_include_directories( ${tgt} 
    PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}   
    PRIVATE ${CMAKE_CURRENT_SOURCE_DIR})

install(TARGETS ${tgt}
        ARCHIVE DESTINATION lib
        LIBRARY DESTINATION lib
        RUNTIME DESTINATION bin
        )

install (FILES vlog.h  unique_instance.h vtime.h vtps.h vmsg_meta.h
    DESTINATION include)


